Skip to content

Add the missing fields to dj-database-url config type - #8008

Merged
AlexWaygood merged 2 commits into
python:masterfrom
palfrey:other-django-db-fields
Jun 1, 2022
Merged

AlexWaygood merged 2 commits into
python:masterfrom
palfrey:other-django-db-fields

Conversation

@palfrey

@palfrey palfrey commented Jun 1, 2022

Copy link
Copy Markdown
Contributor

Corrects issues from #7972 (comment)

@github-actions

This comment has been minimized.

@AlexWaygood AlexWaygood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

PORT: str
CONN_MAX_AGE: int
OPTIONS: dict[str, Any]
TEST: dict[str, Any]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could also be a total=False TypedDict by the looks of it (https://docs.djangoproject.com/en/4.0/ref/settings/#test), but you don't have to do that in this PR if you don't want to.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about it, but filed it mostly under "problems for another day"

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@AlexWaygood

Copy link
Copy Markdown
Member

(Nbd in this PR, but just to note: reordering the keys in the TypedDict at the same time as adding new ones made it a little harder to see which changes were being made -- in the future, if you could limit cosmetic changes being made at the same time as semantic changes, that would be great! 🙂)

@github-actions

github-actions Bot commented Jun 1, 2022

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@AlexWaygood
AlexWaygood merged commit f5f79f1 into python:master Jun 1, 2022
@palfrey
palfrey deleted the other-django-db-fields branch June 1, 2022 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants